import axios from 'axios';

var ALoginService = {};

ALoginService.checkID = function (username, userpwd) {
    let data = {
        username: username,
        userpwd: userpwd,
    }
    return axios.post(process.env.API_HOST + "admin/login", data)
        .then(function (res) {
            return res;
        })
        .catch(function (error) {
            throw error;
        })
};

export default ALoginService;
